Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic Programs

نویسندگان

چکیده

Abstract We consider the quantitative problem of obtaining lower-bounds on probability termination a given non-deterministic probabilistic program. Specifically, non-termination threshold $$p \in [0, 1],$$ p ∈ [ 0 , 1 ] we aim for certificates proving that program terminates with at least $$1-p$$ - . The basic idea our approach is to find terminating stochastic invariant, i.e. subset $$ SI SI states such (i) ever leaving no more than p , and (ii) almost-surely, either leaves or terminates. While invariants are already well-known, provide first proof above not only sound, but also complete analysis. then introduce novel sound characterization enables template-based approaches easy synthesis certificates, especially in affine polynomial forms. Finally, by combining this existing martingale-based methods relatively qualitative analysis, obtain automated, algorithm Notably, completeness guarantees analysis as strong best-known variant. Our prototype implementation demonstrates effectiveness various programs. demonstrate certifies lower bounds programs beyond reach previous methods.

برای دانلود باید عضویت طلایی داشته باشید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Termination Analysis of Probabilistic Programs Through Positivstellensatz's

We consider nondeterministic probabilistic programs with the most basic liveness property of termination. We present efficient methods for termination analysis of nondeterministic probabilistic programs with polynomial guards and assignments. Our approach is through synthesis of polynomial ranking supermartingales, that on one hand significantly generalizes linear ranking supermartingales and o...

متن کامل

Probabilistic Termination of CHRiSM Programs

Termination analysis has received considerable attention in Logic Programming for several decades. In recent years, probabilistic extensions of Logic Programming languages have become increasingly important. Languages like PRISM, CP-Logic, ProbLog and CHRiSM have been introduced and proved very useful for addressing problems in which a combination of logical and probabilistic reasoning is requi...

متن کامل

An Abstract Analysis of the Probabilistic Termination of Programs

It is often useful to introduce probabilistic behavior in programs, either because of the use of internal random generators (probabilistic algorithms), either because of some external devices (networks, physical sensors) with known statistics of behavior. Previous works on probabilistic abstract interpretation have addressed safety properties, but somehow neglected probabilistic termination. In...

متن کامل

Termination of Nondeterministic Recursive Probabilistic Programs

We study the termination problem for nondeterministic recursive probabilistic programs. First, we show that a ranking-supermartingales-based approach is both sound and complete for bounded terminiation (i.e., bounded expected termination time over all schedulers). Our result also clarifies previous results which claimed that ranking supermartingales are not a complete approach even for nondeter...

متن کامل

Proving Termination of Probabilistic Programs Using Patterns

Proving programs terminating is a fundamental computer science challenge. Recent research has produced powerful tools that can check a wide range of programs for termination. The analog for probabilistic programs, namely termination with probability one (“almostsure termination”), is an equally important property for randomized algorithms and probabilistic protocols. We suggest a novel algorith...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Lecture Notes in Computer Science

سال: 2022

ISSN: ['1611-3349', '0302-9743']

DOI: https://doi.org/10.1007/978-3-031-13185-1_4